package com.zsc.roadsys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zsc.roadsys.entity.UserRole;

/**
 * @author haoran
 */

public interface UserRoleService extends IService<UserRole> {
    /**
     * 用户权限对应
     * @param userId
     * @return Long roleId*/
    public Long getUrByUserId(Long userId);

    /**通过 用户id 删除用户权限
     * @param id 用户id
     * @return boolean 成功/失败
     */
    public boolean deleteRoleByUserId(Long id);
}
